const { getOptions } = require('loader-utils')
module.exports = function(source) {
  const options = getOptions(this)
  const swapSource = source.split('').reverse().join('') 
  const subSwapSource = swapSource.substring(0, options.length)
  return `module.exports = '${subSwapSource}'`
}